package com.xiaozhichao.jarslink.servicea.actions;

import com.alipay.jarslink.api.Action;
import com.xiaozhichao.jarslink.servicea.entity.User;
import org.springframework.stereotype.Component;

@Component
public class UserAction implements Action<String, User> {

    @Override
    public User execute(String userName) {
        return new User()
                .setName(userName)
                .setAge(22)
                .setEmail("abc@gmail.com version 1.1")
                .setMobile("131XXXXXXXX");
    }

    @Override
    public String getActionName() {
        return "userAction";
    }
}
